<script>
  var indexloading = null;

  function isAuth(key) {
    if (1 == 1) {
      return true;
    }
    //console.log(key)
    var res;
    if (localStorage.getItem('permission').length > 0) {
      if (localStorage.getItem('permission').indexOf(key) == -1) {
        res = false;
      } else {
        res = true;
      }
    } else {
      res = false;
    }
    return res;
  }

  //console.log(isAuth('error:shareArticleNum:share'));
  // console.log(localStorage.getItem('permission'));
</script>
